package cs340.stormtroopers.hypeerweb;

import java.util.Collection;

public abstract class Operation
{
	protected Node container;

	public Operation(Node container)
	{
		this.container = container;
	}

	public void execute(Node target)
	{
		Collection<Node> nodes = getCollection();
		for (Node n : nodes)
			appropriateOperation(n, target);
	}

	public abstract Collection<Node> getCollection();

	public abstract void appropriateOperation(Node node, Node target);

}
